/**
 * Copyright (c) 2018 qar All rights reserved.
 *
 * https://www.qar.io
 *
 * 版权所有，侵权必究！
 */

package com.example.model.dto;

import com.example.utils.DateUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class BaseAtDTO {
    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @Hidden
    @JsonFormat(locale="zh", timezone="GMT+8", pattern= DateUtils.DATE_TIME_PATTERN)
    @DateTimeFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date createAt;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间") // 序列化（Java 对象转为 JSON）和反序列化（JSON 转为 Java 对象）
    @Hidden
    @JsonFormat(locale="zh", timezone="GMT+8", pattern= DateUtils.DATE_TIME_PATTERN)
    @DateTimeFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date updateDate;



}
